<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" 
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
        xmlns="http://www.w3.org/1999/xhtml">
    <xsl:output method="xml" indent="yes"
        doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" 
        doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
    <xsl:include href="../style/theme.xsl" />
    
        
    <xsl:template match="content">
	<xsl:apply-templates select="data" />
    </xsl:template>
    
    <xsl:template match="content/data">
		<table border="1" width="100%">
			<tr>
				<td>
					<xsl:apply-templates select="list" />
					<xsl:apply-templates select="show" />
					<xsl:apply-templates select="create" />
				</td>
			</tr>
			<tr align="bottom" height="100px">
				<td>
				
				</td>
			</tr>
		</table>
	</xsl:template>
	
	
	<xsl:template match="list">
		<div class="basicInfo">
			<h2>Литература пользователя <b><xsl:value-of select="/document/user/@nic"/></b>:</h2>
			<table border="1" width="100%">
				<thead>
					<th>id</th>
					<th>Название</th>
					<th>Описание</th>
					<th>Дата написания</th>
					<th>Посещений</th>
				</thead>
				<xsl:for-each select="litera/item">
				<tr>
								<td width="1%">
									<xsl:value-of select="@id"/>
								</td>
								<td>
									<a href="index.pl?uname={@autor}&amp;act=show&amp;id={@id}"><xsl:value-of select="@nazvanie"/></a>
								</td>
								<td>
									<xsl:value-of select="@about"/>
								</td>
								
								<td>
									<xsl:value-of select="@time"/>
								</td>
								<td width="1%">
									<xsl:value-of select="@visits"/>
							
								</td>
					</tr>
				</xsl:for-each>
			</table>
		</div><!-- basicInfo -->
		<!-- часть контента контента начало розыска -->
	</xsl:template>
	
	<xsl:template match="show">
		<div class="basicInfo">
			<table border="1">
				<tr>
					<td>
							<xsl:value-of disable-output-escaping="yes" select='text'/>
					</td>
				</tr>
				<tr>
					<td>
					</td>
				</tr>
			</table>
		</div><!-- basicInfo -->
		<!-- часть контента контента начало розыска -->
	</xsl:template>
	
	<xsl:template match="create">
		<div class="basicInfo">
			<table border="1">
				<tr>
					<td>
							<!--<script type="text/javascript" src="/litera/tinymce/examples/litera.js"></script>-->

									<xsl:value-of disable-output-escaping="yes" select='tiny'/>
					</td>
				</tr>
			</table>
		</div><!-- basicInfo -->
		<!-- часть контента контента начало розыска -->
	</xsl:template>

	
</xsl:stylesheet>